* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: black;
}

html,
body {
    width: 100vw;
    height: 100vh;
}

//小标题的公共样式
@mixin beforeStyle($beforestyle) {
    content: $beforestyle;
    text-align: center;
    line-height: 0.314rem;
    color: white;
    font-size: 0.145rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 0.894rem;
    height: 0.314rem;
    border-radius: 0.089rem 0rem 0.089rem 0rem;
    background: linear-gradient(to right, #e16b30, #dd5a32, #d94e35, #d64339);
}



.stock {
    >div:nth-of-type(1) {
        padding: 0.028rem 1.812rem 0rem 0.201rem;
        height: 0.5rem;
        display: flex;
        justify-content: space-between;

        p {
            &:nth-of-type(1) {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 0.427rem;
                height: 0.427rem;
                border-radius: 50%;
                background-color: #b5d7f7;
            }

            img {
                width: 0.302rem;
            }

            &:nth-of-type(2) {
                padding-top: 0.113rem;
                font-size: 0.205rem;
                font-weight: bold;
            }
        }
    }

    >ul:nth-of-type(1) {
        padding: 0rem 0.197rem 0rem 0.209rem;
        height: 1.22rem;
        display: flex;
        justify-content: space-between;
        align-items: center;

        >li:nth-of-type(1) {
            >div:nth-of-type(1) {
                height: 0.358rem;
                display: flex;
                align-items: center;
                >div{
                    display: none;
                    .icon-wrap {
                         display: flex;
                         justify-content: center;
                         align-items: center;
                         width: 0.342rem;
                         height: 0.342rem;
                         border-radius: 0.06rem;
                         overflow: hidden;
                         background-image: linear-gradient(135deg, #ec8039, #d94939);
                         line-height: 0.342rem;
                         text-align: center;
                         box-shadow: #d94939 0 0 0.06rem -0.01rem;
                    }

                    .icon-left {
                         display: inline-block;
                         width: 0.065rem;
                         height: 0.1rem;
                         background-color: #fff;
                         position: relative;
                     }

                     .icon-left::after {
                         content: "";
                         position: absolute;
                         height: 0.16rem;
                         width: 0.025rem;
                         background-color: #fff;
                         top: -0.03rem;
                         left: 0.02rem;
                     }

                     .icon-right {
                         margin-bottom: 0.03rem;
                         padding-left: 0.034rem;
                         display: inline-block;
                         width: 0.04rem;
                         height: 0.13rem;
                         margin-left: 0.03rem;
                         border: 0.03rem solid #fff;
                         border-bottom: unset;
                         position: relative;
                     }

                     .icon-right::before {
                         content: "";
                         position: absolute;
                         display: inline-block;
                         width: 0.04rem;
                         height: 0.04rem;
                         background-color: #fff;
                         top: -0.06rem;
                         left: 0;
                     }

                     .icon-right::after {
                         content: "";
                         position: absolute;
                         display: inline-block;
                         width: 0.04rem;
                         height: 0.04rem;
                         background-color: #fff;
                         bottom: -0.04rem;
                         left: 0;
                     }
                }

                p {
                    margin-left: 0.181rem;
                    font-weight: bold;
                    font-size: 0.282rem;
                }

                >ul:nth-of-type(1),
                >ul:nth-of-type(2) {
                    display:none;
                    padding: 0.052rem;
                    width: 0.338rem;
                    height: 0.338rem;
                    background: linear-gradient(130deg, #9f2ef2, #8a36e8, #7243dc, #604fd3);
                    border-radius: 0.076rem;

                    li {
                        position: relative;
                        width: 0.233rem;
                        height: 0.233rem;
                        border-radius: 50%;
                        border-top: 0.032rem solid #e6d6f9;
                        border-left: 0.032rem solid #e6d6f9;
                        border-right: 0.032rem solid #e6d9f6;
                        border-bottom: 0.032rem solid #e6d9f6;

                        &::before {
                            content: '';
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            transform: translate(-50%, -50%);
                            width: 0.063rem;
                            height: 0.063rem;
                            background-color: white;
                        }
                    }
                }
                >ul:nth-of-type(2){
                    display:none;
                    li{
                        &::before{
                             content: '';
                             position: absolute;
                             top: 50%;
                             left: 50%;
                             border-radius:50% 50% 50% 50%;
                             border:0.06rem solid white;
                             border-left:0.06rem solid #8a36e8;
                             width:0rem;
                             height:0rem;
                             transform: translate(-50%, -50%) rotate(45deg);
                            //  width: 0.063rem;
                            //  height: 0.063rem;
                            //  background-color: white;
                        }
                        // &::after{
                            //  content: '';
                            //  position: absolute;
                            //  top:17%;
                            //  left:17%;
                            //  width:0.056rem;
                            //  height:0.056rem;
                            //  background-color:#8b39e3;
                        // }
                    }
                }
                >ul:nth-of-type(3){
                     display:block;
                     position: relative;
                     padding: 0.052rem;
                     width: 0.338rem;
                     height: 0.338rem;
                     background: linear-gradient(130deg, #21ddfe, #26cafa, #33b4f3, #4198f2);
                     border-radius: 0.076rem;
                     &::after{
                         content: '';
                         position: absolute;
                         top: 50%;
                         left: 50%;
                         border-radius:50%;
                         transform: translate(-50%, -50%);
                         width: 0.117rem;
                         height: 0.117rem;
                         background:linear-gradient(130deg,#fffcff,#fffffd,#ebffff);
                     }
                }
            }

            div:nth-of-type(2) {
                margin-top: 0.181rem;
                display: flex;

                p {
                    font-size: 0.153rem;
                    font-weight: bold;

                    &:nth-of-type(2) {
                        margin-left: 0.129rem;
                    }
                }
            }
        }

        >li:nth-of-type(2) {
            display: flex;
            align-items: center;

            i {
                position: relative;
            }

            i::before {
                position: absolute;
                left: 0.17rem;
                top: -0.085rem;
                font-size: 0.197rem;
            }

            a {
                padding-left: 0.423rem;
                width: 2.283rem;
                height: 0.503rem;
                line-height:0.503rem;
                border-radius: 0.262rem;
                font-size: 0.149rem;
                box-shadow: 0px 0px 4px 4px #f8f8f8;
            }
        }
    }

    >ul:nth-of-type(2) {
        padding: 0.024rem 0.201rem 0rem 0.205rem;
        display: flex;
        justify-content: space-between;

        >li {
            display: flex;
            flex-direction: column;
            width: 1.42rem;
            height: 1.079rem;
            align-items: center;
            border-radius: 0.105rem;
            background: linear-gradient(90deg, #e16b30, #de5f31, #d94d30, #d64339);
            box-shadow: 0px 3px 25px 7px #f8e4ee;

            >p:nth-of-type(1) {
                margin-top: 0.197rem;
                font-size:0.145rem;
                color: #fffef9;
            }

            >p:nth-of-type(2) {
                font-size:0.173rem;
                color: #fffefb;
            }

            div {
                height: 0.145rem;
                align-items: center;
                display: flex;
                justify-content: space-between;

                p {
                    margin-top: 0.133rem;
                    font-size:0.129rem;
                    color: #f4ffff;
                    margin-left:0.05rem;
                }
            }
        }
    }

    >div:nth-of-type(2) {
        padding: 0.262rem 0.201rem 0rem 0.189rem;
        height: 0.801rem;

        >ul {
            border-radius: 0.048rem;
            overflow: hidden;
            width: 4.6rem;
            // display: flex;
            // justify-content: space-between;

            li {
                float:left;
                height: 0.089rem;

                &:nth-of-type(1) {
                    transform: skewX(-45deg) translateX(-0.019rem);
                    background: linear-gradient(to right, #79b13b, #59aa33, #479b2c);
                }

                &:nth-of-type(2) {
                    margin-left: 0.07rem;
                    transform: skewX(-45deg);
                    background-color: #666666;
                    width: 0.36rem;
                }

                &:nth-of-type(3) {
                    transform: skewX(-45deg) translateX(0.09rem);
                    background: linear-gradient(to right, #e16b30, #dc5733, #d64239);
                }
            }
        }

        >div {
            padding-top: 0.085rem;
            display: flex;
            justify-content: space-between;

            p {
                font-size: 0.129rem;

                label {
                    font-size: 0.129rem;
                }

                &:nth-of-type(1) {
                    color: #009a00;

                    label {
                        margin-left: 0.093rem;
                    }
                }

                &:nth-of-type(2) {
                    color: #e63231;

                    label {
                        margin-left: 0.081rem;
                    }
                }
            }
        }
    }

    >ul:nth-of-type(3) {
        overflow: hidden;
        padding: 0rem 0.149rem 0rem 0.161rem;
        margin: 0rem auto;
        width: 4.742rem;
        box-shadow: 0px 0px 6px 3px #f7f7f7;
        border-radius: 0.093rem;

        li {
            line-height:0.64rem;
            float: left;
            font-size: 0.189rem;

            &:nth-of-type(1) {
                color: #f53016;
                display: flex;
                height:0.64rem;
                align-items: center;

                img {
                    width: 0.938rem;
                }
            }

            i::before {
                margin-left: 0.05138rem;
                font-size: 0.081rem;
                color: #999999;
            }

            label {
                margin-left: 0.028rem;
            }

            &:nth-of-type(2) {
                height: 0.64rem;
                width: 3.052rem;
                >div{
                    background-color:blueviolet;
                    width: 3.052rem;
                    height: 0.64rem;
                }
                >span{
                    border:1px solid black;
                    width:3.05rem;
                    height:0.64rem;
                    display: inline-block;
                }
            }
            &:nth-of-type(3){
                 i.active {
                     transform: rotate(180deg);
                 }
            }
        }
        >li:nth-of-type(3){
            width: 0.3rem;
        }
        div{
            display: none;
            padding:0.572rem 0rem 0.2rem 0rem;
            >p{
                line-height:0.4rem;
                font-size: 0.189rem;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                width:4.2rem;
                label{
                     margin-right:0.2rem;
                }
                &:nth-of-type(1){
                    label:nth-of-type(1){
                        color:#d64239;
                    }
                }
                &:nth-of-type(2){
                    label:nth-of-type(1){
                        color:#c88b43;
                    }
                }
                &:nth-of-type(3){
                    label:nth-of-type(1){
                        color:#e5b528;
                    }
                }
            }
        }
    }

    >div:nth-of-type(3) {
        overflow: hidden;
        width: 100%;
        height: 2.705rem;
        margin-top: 0.37rem;

        >ul {
            overflow-x: scroll;
            overflow-y: hidden;
            display: flex;

            &:nth-of-type(1) {
                display: flex;
                justify-content: space-between;
                margin: 0rem auto;
                width: 4.585rem;

                li:nth-of-type(1) {
                    font-size: 0.262rem;
                    font-weight: bold;
                }

                li:nth-of-type(2) {
                    font-size: 0.153rem;
                    color: #a5a5a5;
                }
            }

            &:nth-of-type(2) {
                height: 2.154rem;
                width:98vw;

                >li {
                    float: left;
                    margin: 0.229rem 0rem 0rem 0.193rem;
                    border-radius: 0.109rem;
                    height: 1.787rem;
                    width: 3.434rem;
                    flex: none;
                    box-shadow: 0px 0px 6px 3px #f8f8f8;

                    ul {
                        position: relative;
                        padding: 0.457rem 0.33rem 0rem 0.258rem;
                        display: flex;
                        justify-content: space-between;

                        &:nth-of-type(1) {
                            &::before {
                                @include beforeStyle('热门概念');
                            }
                        }

                        li {
                            p {

                                text-align: center;

                                &:nth-of-type(1) {
                                    white-space: nowrap;
                                    font-weight: bold;
                                    font-size: 0.165rem;
                                }

                                &:nth-of-type(2) {
                                    margin-top: 0.050rem;
                                    font-size: 0.149rem;
                                    color: #d6423a;
                                }

                                &:nth-of-type(3) {
                                    margin-top: 0.120rem;
                                    font-size: 0.133rem;
                                    color: #666666;
                                }

                                &:nth-of-type(4) {
                                    margin-top: 0.050rem;
                                    font-size: 0.101rem;
                                    color: #d6423a;
                                }
                            }

                            &:nth-of-type(2),
                            &:nth-of-type(4) {
                                margin-top: 0.06rem;
                                height: 0.85rem;
                                border-right: 0.016rem solid #eeeeee;
                            }
                        }
                    }

                    &:nth-of-type(2) {
                        >ul {
                            &:nth-of-type(1) {
                                &::before {
                                    @include beforeStyle('热门行业');
                                }
                            }
                        }
                    }

                    &:nth-of-type(3) {
                        >ul {
                            &:nth-of-type(1) {
                                &::before {
                                    @include beforeStyle('5日持续热度板块');
                                    width: 1rem;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    >div:nth-of-type(4) {
        >p {
            font-size: 0.242rem;
            font-weight: bold;
            margin-left: 0.201rem;
        }

        >ul {
            margin-top: 0.342rem;
            display: flex;
            justify-content: space-between;

            &:nth-of-type(1) {
                padding: 0rem 1.365rem 0rem 0.209rem;
                height: 0.278rem;
                align-items: center;
                li {
                    position: relative;
                    font-size: 0.161rem;
                    color: #ababab;
                }
                li.active{
                    color: black;
                    font-size: 0.205rem;
                    &::after {
                        z-index: -1;
                        content: '';
                        position: absolute;
                        top: 0.18rem;
                        left: -0.02rem;
                        width: 0.652rem;
                        height: 0.10rem;
                        background: linear-gradient(to right, #edb190, #e89f98);
                    }
                }
            }

            &:nth-of-type(2) {
                width:4.581rem;
                padding-left:0.209rem;
                margin-top:0.141rem;
                li,
                p {
                    font-weight:normal;
                    font-size:0.145rem;
                    color: #999999;
                }
                li:nth-of-type(2){
                    margin-left:0.81rem;
                }
                li:nth-of-type(3){
                    transform:translateX(-0.15rem);
                    >p{
                        text-align: start;
                    }
                    position: relative;
                    div:nth-of-type(1){
                        position: absolute;
                        right: -35%;
                        top: 15%;
                        p:nth-of-type(1){
                            border-right:0.048rem solid transparent;
                            border-left:0.048rem solid transparent;
                            border-bottom:0.052rem solid #eeeeee;
                            width:0;
                            height:0;
                        }
                         p:nth-of-type(2) {
                             margin-top:0.032rem;
                             border-right: 0.048rem solid transparent;
                             border-left: 0.048rem solid transparent;
                             border-top: 0.052rem solid #d6423a;
                             width: 0;
                             height: 0;
                         }
                    }
                     div:nth-of-type(2) {
                         display: none;
                         position: absolute;
                         right: -35%;
                         top: 15%;

                         p:nth-of-type(1) {
                             border-right: 0.048rem solid transparent;
                             border-left: 0.048rem solid transparent;
                             border-bottom:0.052rem solid #d6423a;
                             width: 0;
                             height: 0;
                         }
                         p:nth-of-type(2) {
                             margin-top: 0.032rem;
                             border-right: 0.048rem solid transparent;
                             border-left: 0.048rem solid transparent;
                             border-top:0.052rem solid #eeeeee;
                             width: 0;
                             height: 0;
                         }
                     }
                }
            }
            &:nth-of-type(3){
                *{
                    pointer-events: none;
                }
                display:flex;
                margin-top:0rem;
                flex-direction: column;
                >li{
                    pointer-events: auto;
                    >ul{
                         padding-left:0.209rem;
                         width:4.593rem;
                         display: flex;
                         margin-top:0.201rem;
                         align-items: center;

                         >li {
                             font-size: 0.181rem;

                             p:nth-of-type(2) {
                                 font-size: 0.113rem;
                                 color: #666666;
                             }

                             &:nth-of-type(2) {
                                text-align: end;
                                margin-right: 0.1rem;
                                width:0.95rem;
                             }

                             &:nth-of-type(4) {
                                 text-align: end;
                                 width:0.7rem;
                             }

                             &:nth-of-type(2),
                             &:nth-of-type(3) {
                                 color: #d6423a;
                             }
                             &:nth-of-type(3){
                                 width:1.15rem;
                                 text-align: end;
                                 padding-right:0.2rem;
                             }
                             &:nth-of-type(1){
                                 width:1.5rem;
                                //  border:1px solid black;
                             }
                         }
                    }
                }
            }
        }
    }
}
